package com.xiaoyi.equery;

import java.io.Serializable;

/**
 * @author xiaoyi
 * @version 1.0.0
 * @createTime 2023-02-18 21:37:00
 */
public class EQueryModel implements Serializable {
    private Long id;
    private String name;
    private String description;
    private String sqlTemplate;
    private Integer databaseType;
    private Integer queryType;
    private Integer resultType;
    private Integer resultTypeAgg;
    private String aggField;
    private String driverClass;
    private String url;
    private String username;
    private String password;
    private Integer driverFrom;
    private String driverUrl;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getSqlTemplate() {
        return sqlTemplate;
    }

    public void setSqlTemplate(String sqlTemplate) {
        this.sqlTemplate = sqlTemplate;
    }

    public Integer getDatabaseType() {
        return databaseType;
    }

    public void setDatabaseType(Integer databaseType) {
        this.databaseType = databaseType;
    }

    public Integer getQueryType() {
        return queryType;
    }

    public void setQueryType(Integer queryType) {
        this.queryType = queryType;
    }

    public Integer getResultType() {
        return resultType;
    }

    public void setResultType(Integer resultType) {
        this.resultType = resultType;
    }

    public Integer getResultTypeAgg() {
        return resultTypeAgg;
    }

    public void setResultTypeAgg(Integer resultTypeAgg) {
        this.resultTypeAgg = resultTypeAgg;
    }

    public String getAggField() {
        return aggField;
    }

    public void setAggField(String aggField) {
        this.aggField = aggField;
    }

    public String getDriverClass() {
        return driverClass;
    }

    public void setDriverClass(String driverClass) {
        this.driverClass = driverClass;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getDriverFrom() {
        return driverFrom;
    }

    public void setDriverFrom(Integer driverFrom) {
        this.driverFrom = driverFrom;
    }

    public String getDriverUrl() {
        return driverUrl;
    }

    public void setDriverUrl(String driverUrl) {
        this.driverUrl = driverUrl;
    }

    @Override
    public String toString() {
        return "EQueryModel{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", description='" + description + '\'' +
                ", sqlTemplate='" + sqlTemplate + '\'' +
                ", databaseType=" + databaseType +
                ", queryType=" + queryType +
                ", resultType=" + resultType +
                ", resultTypeAgg=" + resultTypeAgg +
                ", aggField='" + aggField + '\'' +
                ", driverClass='" + driverClass + '\'' +
                ", url='" + url + '\'' +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", driverFrom='" + driverFrom + '\'' +
                ", driverUrl='" + driverUrl + '\'' +
                '}';
    }
}
